<?php

// include function files for this application
require_once('paperclip_sc_fns.php');
session_start();

do_html_header("Edit paper clip details");
display_shopping_menu($_SESSION['cat_array']);
display_cart_tool();
echo "<div id=\"right-area\">";
if (check_admin_user()) {
	if ($paperclip = get_paperclip_details($_GET['sku'])) {
		display_paperclip_form($paperclip);
	} else {
		echo "<p>Could not retrieve paper clip details.</p>";
	}
	
} else {
	echo "<p>You are not authorized to enter the administration area.</p>";
}
do_html_footer();

?>
